package com.bootdo.app.service;

import com.bootdo.app.domain.PayeeAppDO;
import com.bootdo.common.utils.R;
import com.bootdo.order.domain.OrderPayDO;
import com.bootdo.payee.domain.PassagewayDO;
import com.bootdo.payee.domain.PaymentCodeDO;
import com.bootdo.order.domain.ReceiptDO;
import org.springframework.stereotype.Service;

/**
 * @Desc
 * @auth xia.zhuming
 * @date 2019/11/20
 * ${tags}
 */
@Service
public interface AppLoginService {

    String login(String userName, String password, String deviceId) throws Exception;

    PayeeAppDO findUser(String userId) throws Exception;

    int updateStatus(String userId, String status, String deviceId) throws Exception;

    R userPassagewayList(PassagewayDO passageway) throws Exception;

    int editPassagewayStatus (PassagewayDO passageway) throws Exception;

    int passagewaySave (PassagewayDO passageway) throws Exception;

    int passagewayDelete (PassagewayDO passageway) throws Exception;

    R paymentCodeSave(PaymentCodeDO paymentCode) throws Exception;

    int paymentCodeSave2(PaymentCodeDO paymentCode) throws Exception;

//    void aaa();

    int paymentCodeDelete(PaymentCodeDO paymentCode) throws Exception;

    int editPaymentCodeRecAcc (PaymentCodeDO paymentCode) throws Exception;

    R userPassagewayCodeList (PaymentCodeDO paymentCode) throws Exception;

    R queryUserOrderPayList (OrderPayDO orderPay) throws Exception;

    R queryUserOrderPayIncomeData (OrderPayDO orderPay) throws Exception;

    R queryPayeeAgentBankByPayeeId(Long userId) throws Exception;

    R uploadReceipt(ReceiptDO receipt) throws Exception;

    int confirmReceipt(OrderPayDO orderPay)throws Exception;

    R detailsOfBalance(String userId, String startTime, String endTime)throws Exception;

    R logout(String userId) throws Exception;

    R changePassword (String userId,String newPassword,String oldPassword, String deviceId) throws Exception;

    R personalInformation (String userId) throws Exception;

    R appUpdate() throws Exception;

    R receiptState(String userId) throws Exception;

    R queryPayeeAgentBankByOrderId(String orderId) throws Exception;


}
